package jd.api.response.core;


import java.io.Serializable;

/**
 * Created by xujingfeng on 2017/3/6.
 */
public class CommonResponse<T> implements Serializable {
    protected Boolean success;
    protected String resultMessage;
    protected String resultCode;
    protected String code;
    protected T result;

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getResultMessage() {
        return resultMessage;
    }

    public void setResultMessage(String resultMessage) {
        this.resultMessage = resultMessage;
    }

    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }

    @Override
    public String toString() {
        return "BaseResp{" +
                "success=" + success +
                ", resultMessage='" + resultMessage + '\'' +
                ", resultCode='" + resultCode + '\'' +
                ", code='" + code + '\'' +
                ", result=" + result +
                '}';
    }
}
